/**
 * WeatherService.java 
 * Copyright © 2015-3015, 杭州泊享网络科技有限公司
 * 
 * @author Chuck
 * @create 2014年12月11日
 */
package com.pshare.artemis.common.service;

import net.sf.json.JSONObject;

import org.springframework.stereotype.Service;

import com.pshare.framework.annotation.Cacheablex;
import com.pshare.weather.service.BaiduWeather;

/**
 * 天气业务层
 */
@Service
public class WeatherService {
	protected static final int EXPIRE_TIME = 3600;
	
	@Cacheablex(value = "weather#" + EXPIRE_TIME, key = "#city")
	public JSONObject getWeather(String city){
		return BaiduWeather.GetWeater(city);
	}
}
